package com.mx.kn.cstf2.dao;

import java.sql.SQLException;
import java.util.List;

import javax.sql.DataSource;

import kn.cstf2.transition.Bean.TransitionBean;

import com.mx.kn.cstf2.dto.ComentarioDto;
import com.mx.kn.cstf2.dto.ForoDto;

public interface ForoDao {
	
	public void setDataSourceStkfsf2(DataSource dataSourceStkfsf2) throws SQLException;
	public void setDataSourceCustomerSalesToolKit(DataSource dataSourceCustomerSalesToolKit) throws SQLException;
	public List<ForoDto> getTopics(TransitionBean transition) throws SQLException;
	public List<ComentarioDto> getListComentarios(int idTopico, int idForo)throws SQLException;
	public void insertComment(int idTopico, int idComentarioPadre, int idForo, String comentario, String autor)throws SQLException;
	public void updateUrlImgComment(int idTopico, int idComentario,int idForo ,String urlImg)throws SQLException;
	public void updateUrlFileComment(int idTopico, int idComentario,int idForo, String urlFile)throws SQLException;
	public ComentarioDto getComentartio(int idTopico, int idComentario, TransitionBean transition) throws SQLException;
}
